import requests


resp = requests.post(url= 'http://ihrm-test.itheima.net/api/sys/login',
                     json={"mobile": "13800000002", "password": "123456"})


print(resp.json())
assert 200 == resp.status_code
assert True is resp.json().get('success')
assert 10000 == resp.json().get('code')
assert '操作成功' in resp.json().get('message')